<html lang="zh" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{fragments/layout}">
<head th:include="/admin/common/header :: commonHead"></head>

<body>
<input type="hidden" id="delUrl" value="/api/deleteMenu">
<input type="hidden" id="aoeUrl" value="/api/addOrEditMenu">
<input type="hidden" id="model" value="menu">

<div class="formBox">
    <form id="addForm" class="layui-form">
        <input type="hidden" name="id">
        <div class="layui-form-item">
            <label class="layui-form-label">菜单名称：</label>
            <div class="layui-input-block">
                <input type="text" name="name" lay-verify="required" placeholder="请输入菜单名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单路径：</label>
            <div class="layui-input-block">
                <input type="text" name="url" lay-verify="required" placeholder="请输入菜单路径" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单图标：</label>
            <div class="layui-input-block">
                <input type="text" name="picture" lay-verify="required" placeholder="请输入菜单图标" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单排序：</label>
            <div class="layui-input-block">
                <input type="text" name="sortId" lay-verify="required" placeholder="请输入菜单排序" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单类型：</label>
            <div class="layui-input-block">
                <input type="radio" name="type" value="0" title="后台">
                <input type="radio" name="type" value="1" title="前台">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单级别：</label>
            <div class="layui-input-block">
                <input type="radio" name="level" value="1" title="一级" lay-filter="level">
                <input type="radio" name="level" value="2" title="二级" lay-filter="level">
                <input type="radio" name="level" value="3" title="三级" lay-filter="level">
            </div>
        </div>
        <div class="layui-form-item type">
            <label class="layui-form-label">父级菜单：</label>
            <div class="layui-input-block">
                <select name="parentId" lay-verify="required" lay-search="">
                </select>
            </div>
        </div>
    </form>
</div>
</body>
<html th:include="/admin/common/footer :: commonFoot"></html>
<script type="text/javascript">
    layui.config({
        base:path+'/static/admin/js/' //你的模块目录
    }).use('menu'); //加载入口
</script>
</html>